package com.dek.seckill.common.handler;

public class UserContext {

    private static ThreadLocal<String> userContext = new ThreadLocal<>();

    public static void setUser(String user) {
        userContext.set(user);
    }

    public static String getUser() {
        return userContext.get();
    }

}
